package com.ning.mapper;

import com.ning.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper  //表示本类是一个mybatis的Mapper类
@Repository  //被Spring整合
public interface UserMapper {
//    public static final int age = 18;  接口！！！！常量！
    List<User> queryUserList();

    User queryUserByID(int id);

    int addUser(User user);
    int updateUser(User user);
    int deleteUser(int id);





}
